package com.chen.common.sftp;

import com.chen.common.sftp.factory.ChannelSftpFactory;
import com.chen.common.sftp.factory.FtpClientFactory;
import com.chen.common.sftp.handler.FtpPoolHandler;
import com.chen.common.sftp.handler.SftpPoolHandler;
import com.chen.common.sftp.properties.FtpPoolProperties;
import com.chen.common.sftp.properties.SftpPoolProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: ChenJinLong
 * @DATE: 2024/1/26
 **/
@Configuration
public class SftpFtpAutoConfig {

    @Bean
    public ChannelSftpFactory channelSftpFactory(){
        return new ChannelSftpFactory();
    }

    @Bean
    public FtpClientFactory ftpClientFactory(){
        return new FtpClientFactory();
    }

    @Bean
    public FtpPoolHandler ftpPoolHandler(){
        return new FtpPoolHandler();
    }

    @Bean
    public SftpPoolHandler sftpPoolHandler(){
        return new SftpPoolHandler();
    }

    @Bean
    public FtpPoolProperties ftpPoolProperties(){
        return new FtpPoolProperties();
    }

    @Bean
    public SftpPoolProperties sftpPoolProperties(){
        return new SftpPoolProperties();
    }
}
